package com.example.administrator.teainfo.utils;

import android.content.Context;
import android.content.SharedPreferences;

/**
 * Created by Administrator on 2016/12/10.
 */

public class SharedPreferencesHelper {
    private SharedPreferences spf;
    private SharedPreferences.Editor editor;
    public SharedPreferencesHelper(Context context){
        spf = context.getSharedPreferences("isFirst",Context.MODE_PRIVATE);
        editor = spf.edit();
    }
    public void putString(String s,String msg){
        editor.putString(s,msg);
        editor.commit();
    }
    public String getString(String s){
        return spf.getString(s,"yes");
    }
}
